home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 227_01 / bios.h < prev    next >
Text File  |  1988-02-07  |  1KB  |  23 lines

  1. /**
  2. *                           b i o s . h
  3. *                           -----------
  4. * Hardware-specific definitions for the standrad BIOS driver.
  5. * Note, that the listed limits are not common to all video-modes!
  6. **/
  7.  
  8. /**
  9. * definiton of hardware-dependent constants:
  10. **/
  11. #define GREEN    1                          /* color green */
  12. #define MAX_X    640                        /* Num. x-pixel */
  13. #define MAX_Y    200                        /* Num. y-pixel */
  14. #define X_LOW    0                          /* lowest x valid coordinate */
  15. #define X_HIGH   639                        /* highest x valid coordinate */
  16. #define Y_LOW    0                          /* lowest y valid coordinate */
  17. #define Y_HIGH   199                        /* highest y valid coordinate */
  18. #define BYGRAFP  16 * 1024L                 /* Num. bytes for graphics page */
  19. #define BYTEXTP  80 * 25  * 2               /* Num. bytes for text page */
  20.  
  21. #define initgraf(x) setmode(0xf)            /* for compatibility with the */
  22. #define exitgraf(x) setmode(7)              /* previous hercules library. */
  23.